﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.BehaviorTree;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.Logic.POI;
using Styx.WoWInternals.WoWObjects;

namespace Healz.Druid.Spells
{
    class Swiftmend
    {
        // Public Vars
        public const string SpellName = "Swiftmend";

        public static bool Pulse(WoWPlayer Player)
        {
            if (Player.HealthPercent > Main.Settings.Swiftmend_Percent) return false;
            if (Player.Distance > SpellManager.Spells[SpellName].MaxRange) return false;
            if (!SpellManager.Spells[SpellName].CanCast) return false;

            // Brain not working here.
            if (StyxWoW.Me.HasAura("Rejuvenation") || StyxWoW.Me.HasAura("Regrowth"))
            {
            }
            else { return false; }


            Utils.WriteCast(SpellName, Player);
            SpellManager.Cast(SpellName, Player);

            return true;
        }
    }
}
